<template>
  <div>
    <NavBar v-if="isHomePage" />
    <router-view></router-view>
  </div>
</template>

<script>
import NavBar from './views/NavBar.vue';

export default {
  name: 'App',
  components: {
    NavBar,
  },
  computed: {
    isHomePage() {
      return this.$route.path === '/';
    }
  }
}
</script>